import Http from "@/utils/request";

export const getCategories = () => Http.get<BaseResponse<CategoryList[]>>({ url: "/category/admin/list" });

export const getServiceCategory = () => Http.get<BaseResponse<any>>({ url: "/service/homeListServiceAllCategory" });

export const getServiceListByCategory = (categoryId: number) => Http.get<BaseResponse<any>, number>({ url: `/service/listService/${categoryId}` })
